/*
 * ArrowButton : BaseButton 箭头按钮，继承自按钮基类
 */
import QtQuick 2.15

Item {
    id: root

    /* property 定义开始 */
    property int arwWidth: 10
    property int arwHeight: 10
    property bool arwIsSquare: false
    property string arwBgColor: "skyblue"
    property int arwRadius: 10 // 默认圆形
    property url arwIconPath: ""
    property int arwIconWidth: 31
    property int arwIconHeight: 31
    property int arwIconFillmode: Image.Stretch
    property bool isEnable: true
    property bool isSvg: false
    /* property 定义结束 */

    BaseButton {
        btnWidth: arwWidth
        btnHeight: arwIsSquare ? arwWidth : arwHeight
        btnColor: isEnable ? arwBgColor : rgba(0, 0, 0, 0)
        btnRadius: arwRadius
        btnBorderWidth: 0
        btnBorderColor: "transparent"
        btnIconPath: arwIconPath
        btnIconWidth: arwIconWidth
        btnIconHeight: arwIconHeight
        btnIconAlignment: arwIconFillmode
        btnLabelWidth: 0
        btnLabelHeight: 0
        btnLabelIsVisible: false
        isSvg: root.isSvg
    }

}
